package com.vichat.task.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2017-01-25 15:05:21.13
 */
@Entity
@Table(name = "cfg_task",catalog = "cfgdb")
public class CfgTask implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "cfg_task";

    /** */
	public static final String ALIAS_CFG_TASK_ID = "cfg_task_id";
    /** */
	public static final String ALIAS_TASK_TYPE_CODE = "task_type_code";
    /** */
	public static final String ALIAS_TASK_NAME = "task_name";
    /** */
	public static final String ALIAS_TASK_EXPR = "task_expr";
    /** */
	public static final String ALIAS_TASK_METHOD = "task_method";
    /** */
	public static final String ALIAS_BUSINESS_CLASS = "business_class";
    /** */
	public static final String ALIAS_REMARK = "remark";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /** */
	public static final String ALIAS_UPDATE_TIME = "update_time";
    /** */
	public static final String ALIAS_STATUS = "status";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "cfg_task_id", unique = true, nullable = false)
    public Long cfgTaskId;

 	@Column(name = "task_type_code")
    public String taskTypeCode;

 	@Column(name = "task_name")
    public String taskName;

 	@Column(name = "task_expr")
    public String taskExpr;

 	@Column(name = "task_method")
    public String taskMethod;

 	@Column(name = "business_class")
    public String businessClass;

 	@Column(name = "remark")
    public String remark;

 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;

 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;

 	@Column(name = "status")
    public String status = "1";






	public Long getCfgTaskId() {
		return this.cfgTaskId;
	}

	public void setCfgTaskId(Long value) {
		this.cfgTaskId = value;
	}

	public String getTaskTypeCode() {
		return this.taskTypeCode;
	}

	public void setTaskTypeCode(String value) {
		this.taskTypeCode = value;
	}

	public String getTaskName() {
		return this.taskName;
	}

	public void setTaskName(String value) {
		this.taskName = value;
	}

	public String getTaskExpr() {
		return this.taskExpr;
	}

	public void setTaskExpr(String value) {
		this.taskExpr = value;
	}

	public String getTaskMethod() {
		return this.taskMethod;
	}

	public void setTaskMethod(String value) {
		this.taskMethod = value;
	}

	public String getBusinessClass() {
		return this.businessClass;
	}

	public void setBusinessClass(String value) {
		this.businessClass = value;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String value) {
		this.remark = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String value) {
		this.status = value;
	}



	public CfgTask() {
	}

	public CfgTask(boolean qryflag) {
	    if(qryflag){
	    		this.cfgTaskId = null;
				this.taskTypeCode = null;
				this.taskName = null;
				this.taskExpr = null;
				this.taskMethod = null;
				this.businessClass = null;
				this.remark = null;
				this.createTime = null;
				this.updateTime = null;
				this.status = null;
			    }
	}


	public CfgTask(
	    Long inCfgTaskId,
	    String inTaskTypeCode,
	    String inTaskName,
	    String inTaskExpr,
	    String inTaskMethod,
	    String inBusinessClass,
	    String inRemark,
	    java.util.Date inCreateTime,
	    java.util.Date inUpdateTime,
		String inStatus
	 ) {
		super();
				this.cfgTaskId = inCfgTaskId;
				this.taskTypeCode = inTaskTypeCode;
				this.taskName = inTaskName;
				this.taskExpr = inTaskExpr;
				this.taskMethod = inTaskMethod;
				this.businessClass = inBusinessClass;
				this.remark = inRemark;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
				this.status = inStatus;
			}





}

